@model Promike.site.Models.PhotoAlbum

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>PhotoAlbum</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">DatePublish</div>
    <div class="display-field">@String.Format("{0:g}", Model.DatePublish)</div>

    <div class="display-label">Author</div>
    <div class="display-field">@Model.Author</div>

    <div class="display-label">Visible</div>
    <div class="display-field">@Model.Visible</div>

    <div class="display-label">Photos</div>
    <div class="display-field">@(Model.Photos == null ? "None" : Model.Photos.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


